@layout("../../../common/main.html"){
<form class="layui-form layui-form-pane ok-form">
    <input type="hidden" id="id" name="id" value="${sysMenu.id}"/>
    <div class="layui-form-item">
        <label class="layui-form-label">菜单名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="name" placeholder="请输入菜单名称" autocomplete="off" class="layui-input"
                   lay-verify="required" value="${sysMenu.name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">父级菜单</label>
        <div class="layui-input-block">
            <input type="hidden" id="pId" name="pId" value="${sysMenu.pId}"/>
            <input type="text" name="pName" id="pName" placeholder="请选择父级菜单" autocomplete="off" class="layui-input"
                   lay-verify="required" readonly="readonly" value="${sysMenu.pName}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">菜单地址</label>
        <div class="layui-input-block">
            <input type="text" name="url" id="url" placeholder="请输入菜单地址" autocomplete="off" class="layui-input" value="${sysMenu.url}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">菜单权限</label>
        <div class="layui-input-block">
            <input type="text" name="role" id="role" placeholder="请输入菜单权限" autocomplete="off" class="layui-input" value="${sysMenu.role}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">菜单图标</label>
        <div class="layui-input-block">
            <input type="text" name="icon" id="icon" placeholder="请输入菜单图标" autocomplete="off" class="layui-input" value="${sysMenu.icon}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">菜单序号</label>
        <div class="layui-input-block">
            <input type="text" name="sort" id="sort" placeholder="请输入菜单序号" autocomplete="off" class="layui-input" value="${sysMenu.sort}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否菜单</label>
        <div class="layui-input-block">
            <select id="isMenu" name="isMenu" lay-verify="required">
                <option value="0">是</option>
                <option value="1">不是</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="button" class="layui-btn" lay-submit lay-filter="add">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
@}
<script src="${ctxPath}/static/modules/sys/menu/menu_edit.js"></script>